﻿import request from '@/utils/request';
// list
export const yuanxiList = (params) => {
    return request({
        url: '/yuanxi/page',
        method: 'post',
        data: params,
    })
};
export const yuanxiDetail = (id) => {
    return request({
        url: '/yuanxi/'+id,
        method: 'get',
    })
};
// add
export const yuanxiSave = (params) => {
    return request({
        url: '/yuanxi',
        method: 'post',
        data: params,
    })
};
// updt
export const yuanxiEdit = (params) => {
    return request({
        url: '/yuanxi',
        method: 'put',
        data: params,
    })
};
// delete
export const yuanxiDelete = (id) => {
    return request({
        url: '/yuanxi/'+id,
        method: 'delete',
    })
};
// pldel
export const yuanxiDeleteList = (yuanxis) => {
    return request({
        url: '/yuanxi/deleteList',
        data:{list:yuanxis},
        method: 'post',
    })
};
// all
export const yuanxiAllList = () => {
    return request({
        url: '/yuanxi',
        method: 'get',
    })
};

